package com.fowo.api.sys.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.fowo.api.sys.entity.SysFile;
import com.fowo.api.sys.model.SysFileItemVo;
import com.fowo.api.sys.model.SysFileSearch;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface SysFileMapper extends BaseMapper<SysFile> {
    Page<SysFileItemVo> searchPage(Page page, @Param("search") SysFileSearch search);

    SysFile selectLastByFilename(@Param("filename") String filename);
}
